import request from "@/utils/request";

// 系统菜单——分页列表接口
export function queryList(data) {
  return request({
    url: "/sysConfigMenu/queryList",
    method: "get",
    params: data
  })
}

// 新增菜单
export function insertByModel(data) {
  return request({
    url: "/sysConfigMenu/insertByModel",
    method: "post",
    data
  })
}

// 修改菜单
export function updateByModel(data) {
  return request({
    url: "/sysConfigMenu/updateByModel",
    method: "post",
    data
  })
}

// 删除菜单
export function deleteMenu(data) {
  return request({
    url: "/sysConfigMenu/delete",
    method: "post",
    data
  })
}

